package stream_demo;

import java.util.stream.Stream;

public class demo4 {
    public static void main(String[] args) {
        //零散数据
        Stream.of(1,2,3,4,5,6).forEach(s-> System.out.println(s));
        //引用数据
        Stream.of("aaa","bbb","ccc").forEach(s-> System.out.println(s));
    }
}
